function getBirthday(idNumber) {
    let idArray = Array.from(idNumber);
    let birthday = idArray.slice(6, 14).join('');
    return birthday;
  }
  
  console.log(getBirthday('123456789012345678'));
  